<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <style>
    body {
      width: 300px;
      padding: 10px;
    }
    .input-group {
      margin-bottom: 10px;
    }
    input[type="password"] {
      width: 100%;
      padding: 6px;
      margin-bottom: 8px;
      border: 1px solid #ccc;
      border-radius: 4px;
    }
    button {
      width: 100%;
      padding: 8px;
      background-color: #0078d4;
      color: white;
      border: none;
      border-radius: 4px;
      cursor: pointer;
      margin-bottom: 8px;
    }
    button:hover {
      background-color: #006cbd;
    }
    button#stopTranslate {
      background-color: #d42a2a;
    }
    button#stopTranslate:hover {
      background-color: #bd2525;
    }
    .status {
      color: #666;
      font-size: 12px;
      text-align: center;
    }
    .button-group {
      display: flex;
      gap: 8px;
    }
    .button-group button {
      flex: 1;
    }
    .checkbox-group {
      margin: 10px 0;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .checkbox-group input[type="checkbox"] {
      margin: 0;
    }
  </style>
</head>
<body>
  <div class="input-group">
    <input type="password" id="apiKey" placeholder="请输入 DeepSeek API Key">
    <button id="saveKey">保存 API Key</button>
  </div>
  <div class="checkbox-group">
    <input type="checkbox" id="showOriginal" checked>
    <label for="showOriginal">显示英文原文（双语对照）</label>
  </div>
  <div class="button-group">
    <button id="translate">翻译此页面</button>
    <button id="stopTranslate">停止翻译</button>
  </div>
  <div id="status" class="status"></div>
  <script src="popup.js"></script>
</body>
</html>
